<style>
	.datatable {
		text-align: left;
		font-size: 12px;
		font-family: verdana;
		background: #c0c0c0; margin:2px;
	}

	.datatable thead tr,

	.datatable tfoot tr {
		background: #c0c0c0;
	}

	.datatable tbody tr {
		background: #f0f0f0;
	}

	.datatable td, th {
		border: 1px solid white; height:28px;
	}
	.datatable td {background-color:white;}
	
	.datatable .hover td {background-color:#99CCFF;}
	
	.datatable .select td {background-color:#EEEE99;}

	#ui-datepicker-div{ font-size:12px;}
</style>
<form action="/admini/managemystore/index" method="get" style="margin:0px">
<div style=" border:1px solid #DDDDDD; padding:2px; margin:2px;">
<label for="member">用户：</label><input type="text" id="username" name="username" />
<label for="storeno">仓库号：</label><input type="text" id="storeno" name="storeno" />
<label for="logistics">物流单号：</label><input type="text" id="orderno" name="orderno" />
<label for="starttime">订单时间：</label><input type="text" id="dateinbegin" name="dateinbegin" />
<label for="endtime">--</label><input type="text" id="dateinend" name="dateinend" />
<input type="submit" id="queryButton" value="查询"/>
</div>
</form>
<table cellspacing="1" width="100%" class="datatable">
	<thead>
		<tr>
			<th>ID</th>
                        <th>用户</th>
			<th>快递单号</th>
			<th>入库时间</th>
                        <th>商品名称</th>
                        <th>状态</th>
			<th>数量</th>
			<th>重量</th>
                        <th>体积重量类型</th>                        
                        <th>仿牌</th>
                        <th>特殊</th>
                        <th>长</th>
                        <th>宽</th>
                        <th>高</th>
                        <th>体积重量</th>
                        <th>真空</th>
                        <th>真空重量</th>
                        <th>去包重量</th>
                        <th>产品类型</th>
                        <th>出库时间</th>
		</tr>
	</thead>
	<tbody>
            <?php if($this->StoreItemList)
            {
                foreach ($this->StoreItemList as $Item) {?>
                <tr>
                <td><?php echo $Item->id;?></td>
                <td><?php echo $Item->userinfo->nikename;?></td>
                <td><?php echo $Item->orderNo;?></td>
                <td><?php echo $Item->dateInStore;?></td>
                <td><?php echo $Item->productName;?></td>
                <td><?php 
                    echo $stateStr = '';
                    if($Item->state == 1 && $Item->wayId != '')
                    {
                        $stateStr = '等待出库';
                    }
                    else if ($Item->state == 1)
                    {
                        $stateStr = '入库';
                    }
                    else if($Item->state == 2)
                    {
                        $stateStr = '出库';
                    }
                    echo $stateStr;
                ?></td>
                <td><?php echo 1;?></td>
                <td><?php echo $Item->weight;?></td>
                <td><?php echo $Item->bignessType;
                    $bignessTypeStr = '';
                    switch((int)$Item->bignessType)
                    {
                        case 0:
                            $bignessTypeStr = '普通';
                            break;
                        case 2:
                            $bignessTypeStr = '轻抛';
                            break;
                        case 3:
                            $bignessTypeStr = '抛';
                            break;
                        case 3:
                            $bignessTypeStr = '重抛';
                            break;
                    }
                    echo $bignessTypeStr;
                ?></td>
                <td><?php echo ($Item->isBrand == 1) ? "是" : "否";?></td>                
                <td><?php echo ($Item->isSpecific == 1) ? "是" : "否";?></td>
                <td><?php echo $Item->length;?></td>
                <td><?php echo $Item->width;?></td>
                <td><?php echo $Item->height;?></td>
                <td><?php echo $Item->volumeWeight;?></td>
                <td><?php echo $Item->canVacuum;?></td>
                <td><?php echo $Item->vacuumWeight;?></td>
                <td><?php echo $Item->noPackageWeight;?></td>
                <td><?php 
                    $itemTypeStr = '';
                    switch($Item->itemType)
                    {
                        case 0:
                            $itemTypeStr = '正常';
                            break;
                        case 1:
                            $itemTypeStr = '仿牌';
                            break;
                        case 2:
                            $itemTypeStr = '电池';
                            break;
                        case 4:
                            $itemTypeStr = '液体';
                            break;
                        case 8:
                            $itemTypeStr = '食品';
                            break;
                        case 16:
                            $itemTypeStr = '粉末';
                            break;
                        case 32:
                            $itemTypeStr = '膏状物';
                            break;
                        case 64:
                            $itemTypeStr = '药物';
                            break;
                    }
                
                echo $itemTypeStr;?></td>
                <td><?php echo $Item->dateOut;?></td>
                </tr>
                <?php                 
                }                
            }?>
	</tbody>
</table>
<?php
    echo $this->partial('paging.phtml',array("pages"=>$this->StoreItem));                
?>